<!doctype html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
    <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
    <link rel="stylesheet" type="text/css" href="./css/aui.css" />
    <link rel="stylesheet" type="text/css" href="./css/style.css" />
    <link rel="stylesheet" type="text/css" href="./css/font-awesome.min.css" />
    <script type="text/javascript" src="./script/jquery.min.js"></script>
    <link class="theme" rel="stylesheet" type="text/css" href="./css/color/blue.css" />
    <script type="text/javascript" src="./script/doT.min.js"></script>

</head>

<!-- <header class="aui-bar aui-bar-nav header" id='topbar' >

    <div class="aui-title"><span>市管领导干部信息查询系统--相关资料</span></div>
    <a class="aui-pull-right aui-btn">
        <span class="fa fa-user-circle-o" onclick="user()"></span>
    </a>
</header> -->
<div class="head" id='topbar'>
    <div class="head-s">
        <span><div >市管领导干部信息查询系统--目标考核</div></span>
        <div class="head-l"><i class="fa fa-caret-left" onclick="hisback()"></i></div>
        <div class="head-r"><i class="fa fa-user-circle-o" onclick="user()"></i></div>
    </div>
</div>
<div class="header-d"></div>
</body>
<script type="text/javascript" src="./script/api.js"></script>

</html>
<script>
    apiready = function() {
        var color = $api.getStorage('color');
        $(".theme").attr("href", color);
        var headerPos = $api.offset($api.dom('#topbar'));
        api.openFrame({
            name: 'pdf',
            url: 'file:///storage/emulated/0/kaohe/index_1.htm',
            // url: './pdf/index_1.htm',
            rect: {
                x: 0,
                y: headerPos.h,
                w: 'auto',
                marginBottom: 60
            },
            pageParam: {
                name: 'test'
            },
            bounces: true,
            bgColor: 'rgba(0,0,0,0)',
            vScrollBarEnabled: true,
            hScrollBarEnabled: true
        });
        api.bringFrameToFront({
            from: 'kaohe',
        });
        api.bringFrameToFront({
            from: 'pdf',
        });
    }

    function hisback() {
      api.sendEvent({
      name: 'backUrl',
  });
    }
    function changeColor(){
      var color = $api.getStorage('color');
      $(".theme").attr("href", color);
    }

    function user() {
        api.openWin({
            name: 'user',
            url: './user.html',
        });
    }
</script>
